# -*- conding:UTF-8 -*-

'''
@ Project: P8_02_LumenIM-flask
@ File: user_fs.py
@ Author: 罗婷
@ Date：2022/7/10 19:58

'''
from flask_restful import fields

user_fieklds = {
    'id': fields.Integer,
    'motto': fields.String,
    'nickname': fields.String,
    'mobile': fields.String,
    'password': fields.String,
    'email': fields.String,
    'avatar': fields.String,
    'gender': fields.Integer,
}

group_fields = {
    'id': fields.Integer,
    'creator_id': fields.Integer,
    'max_num': fields.Integer,
    'group_name': fields.String,
    'profile': fields.String,
    'avatar': fields.String,
    'is_overt': fields.Boolean,
    'is_mute': fields.Boolean,
    'is_dismiss': fields.Boolean,
    'created_at': fields.DateTime,
    'updated_at': fields.DateTime,
    'dismissed_at': fields.DateTime,
}


